package com.zfzs.post.modules.finance.rest;

import com.zfzs.post.common.bean.ResponseResult;
import com.zfzs.post.modules.finance.service.FlowActivWebService;
import com.zfzs.post.modules.flow.service.dto.FlowActivQueryCriteria;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author wq
 * @date 2019/12/6 11:33
 * @description
 */
@RestController
@RequestMapping("activ")
public class FlowActivWebController {

    @Autowired
    private FlowActivWebService flowActivWebService;


    @RequestMapping("/list")
    public ResponseResult activPage(FlowActivQueryCriteria criteria,Integer page,Integer size){
        Map<String,Object> map=flowActivWebService.findPageList(criteria,page,size);
        return ResponseResult.ok(map);
    }

}
